<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<DocuServe.Core.Entities.Person>>" %>

<%@ Import Namespace="MyCode.Web.Mvc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">

    <script src="../../Scripts/ui/ui.core.js" type="text/javascript"></script>

    <script src="../../Scripts/ui/ui.draggable.js" type="text/javascript"></script>

    <script src="../../Scripts/ui/ui.resizable.js" type="text/javascript"></script>

    <script src="../../Scripts/ui/ui.dialog.js" type="text/javascript"></script>

    <script src="../../Scripts/Person.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">
        $(function() {
            var createPersonDialog = new CreatePersonDialog($('#Create'));
            createPersonDialog.init();
        })
    </script>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Index</h2>
    <% Html.RenderPartial("List", this.Model); %>
    <br />
    <%= new MvcButton(Html, "Create") { Value = "Create" }%>
</asp:Content>
